﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Globalization;

public partial class User_ctrCreateUser : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnSave_Click(object sender, EventArgs e)
    {
        //User obj = new User();
        //obj.Username = txtUsername.Text;
        //obj.Password = txtPassword.Text;
        //obj.Birthday = Convert.ToDateTime(this.txtBirthday.Text,new CultureInfo("vi-vn").DateTimeFormat);
        //obj.About = editor.Text;
        //StreamingServiceClient proxy = new StreamingServiceClient();
        //int UserId = proxy.CreateUser(new CreateUserRequest(obj)).CreateUserResult;
        //if (UserId > 0)
        //{
        //    ltrMessage.Text = "<div style='height:40px; background:green; text-align:center; color:white'>User has created</div>";
        //}
        //else
        //{
        //    ltrMessage.Text = "<div style='height:40px; background:red; text-align:center; color:white'>User has created</div>";
        //}

    }
}